import { forBindEventThis } from '../../../../global_comps/Func/forBindEventThis';
import { file_type_dataMana } from './cla_file_type_dataMana';
import type { file_type_props } from './cla_file_type_props';

const file_type_operateTag = 'file_type_operate';

export class file_type_operate extends file_type_dataMana {
  get [Symbol.toStringTag]() {
    return file_type_operateTag;
  }

  constructor(props: file_type_props) {
    super(props);

    forBindEventThis(this);

    this.eventM.addEventListen(this.dom_inp, 'blur', this.eventBind.inp_blur);
  }

  /**
   * 在 input 元素 失焦时 触发
   */
  inp_blur() {
    let cur_val = this.dom_inp.value;

    this.set_keyVal_node(cur_val);
  }
}
